package book.ch7;

public class AnymousTest {
    protected void test(){
        System.out.println("hello,this is AnymousTest");

    }
}


class SonObj extends AnymousTest{

}


class MainObj{
    public static void main(String[] args) {
        AnymousTest a=new AnymousTest(){
            int x=0;
            void func(){

            }
        };

        AnymousTest b=new AnymousTest(){
            int y=0;
        };
    }
}



